var sorts=[
  {
    URL:"http://huruqing.cn/static/img/fresh/other/r1.png",
    name:"时令鲜果"
  },{
    URL:"http://huruqing.cn/static/img/fresh/other/r2.png",
    name:"海鲜水产"
  },{
    URL:"http://huruqing.cn/static/img/fresh/other/r3.png",
    name:"家禽蛋"
  },{
    URL:"http://huruqing.cn/static/img/fresh/other/r4.png",
    name:"地方农产"
  },{
    URL:"http://huruqing.cn/static/img/fresh/other/r5.png",
    name:"百果园公司"
  },{
    URL:"http://huruqing.cn/static/img/fresh/other/r6.png",
    name:"农品茗茶"
  },{
    URL:"http://huruqing.cn/static/img/fresh/other/r7.png",
    name:"五谷杂粮"
  },{
    URL:"http://huruqing.cn/static/img/fresh/other/r8.png",
    name:"牛羊肉"
  },{
    URL:"http://huruqing.cn/static/img/fresh/other/r9.png",
    name:"区域特产"
  }
]
var sortConnect = '';
var sort = document.getElementById('sort')
for(var i=0;i<sorts.length;i++){
  var item=sorts[i];
  sortConnect+=`
    <div class="sort-item flex fdc jc-c aic">
      <img src="${item.URL}" alt="">
      <span class="sort-title mt-10">${item.name}</span>
    </div>`
}
sort.innerHTML=sortConnect;

var fruits=[
  {
    URL:"https://mall.s.maizuo.com/86d8414272e50b4b9a7b185ac30dfc86.png?x-oss-process=image/resize,w_180",
    title:"【山东】金秋红蜜桃",
    intr:"基地果园现摘现发 鲜甜红润肉厚 富含维生素",
    price:67.80,
    salesVolume:9998
  },{
    URL:"https://mall.s.maizuo.com/c8ae4728163788cda4147e1ed8c44409.png?x-oss-process=image/resize,w_180",
    title:"【云南】实建褚橙 10斤装 （95-135g/枚）",
    intr:"源自“花腰傣之乡” 鲜甜脆嫩多汁 富含维C营养",
    price:98.00,
    salesVolume:9931
  },{
    URL:"https://mall.s.maizuo.com/14a9e655a578abe935f8c150b6d85592.png?x-oss-process=image/resize,w_180",
    title:"【海南】红心火龙果礼盒装  5斤装（5-7枚）",
    intr:"基地果园采摘 鲜嫩爽口水润 富含天然花青素",
    price:69.9,
    salesVolume:9953
  },{
    URL:"https://mall.s.maizuo.com/0238d75b8a9e13c5a18df9781c296c83.png?x-oss-process=image/resize,w_180",
    title:"【云南】新鲜冰糖橙 5斤装 （果径60mm+/枚）20-30个",
    intr:"生态果园采摘 肉厚清甜多汁 富含维C营养",
    price:29.90,
    salesVolume:99290
  },{
    URL:"https://mall.s.maizuo.com/9aba9f63c14a9aa7d469b62a0f9cde41.png?x-oss-process=image/resize,w_180",
    title:"【山西】红富士苹果 8-10枚5斤装（果径80mm/枚）",
    intr:"生态果园采摘 肉厚清甜多汁 富含维C营养",
    price:34.80,
    salesVolume:9053
  },{
    URL:"https://mall.s.maizuo.com/c3797b5e9dab17cb3e1c56547ba7d406.png?x-oss-process=image/resize,w_180",
    title:"【云南】冰糖心丑苹果",
    intr:"原产基地直供 脆甜多汁爽口 自然糖心结晶",
    price:39.90,
    salesVolume:99893
  },{
    URL:"https://mall.s.maizuo.com/f6f787571eb0f43ca5db9bb4e3a3bb80.png?x-oss-process=image/resize,w_180",
    title:"【河北】红袖添香 甄西瓜 礼盒装1枚（2斤）",
    intr:"个头圆润饱满 肉厚沙瓤鲜甜 富含果糖维生素",
    price:39.90,
    salesVolume:9977
  },{
    URL:"https://mall.s.maizuo.com/bcc961c6faea5b9a2467c9d759db3cd6.png?x-oss-process=image/resize,w_180",
    title:"【山东】海阳网纹瓜 2个5斤装（2.4-2.6斤/枚）",
    intr:"皮薄圆润均匀 肉厚鲜嫩脆甜 现摘现发",
    price:35.80,
    salesVolume:9840
  },{
    URL:"https://mall.s.maizuo.com/fac0e634a3fc27e1708ad06f667aa47d.png?x-oss-process=image/resize,w_180",
    title:"【山东】水果牛奶白玉黄瓜 5斤装（18-25根）",
    intr:"农家现摘现发 饱满脆嫩光滑 肉厚新鲜爽口",
    price:39.90,
    salesVolume:99974
  },{
    URL:"https://mall.s.maizuo.com/cc9a81c997e47a858b5d3f30f401289f.png?x-oss-process=image/resize,w_180",
    title:"【福建】平和红心蜜柚 4枚礼盒装（2-2.3斤/枚）",
    intr:"生态种植现摘 果肉艳红饱满 脆甜鲜嫩可口",
    price:39.90,
    salesVolume:7735
  }
]
var fruitConnect="";
var fruitItem=document.getElementById("item");
for(var f=0;f<fruits.length;f++){
  var item=fruits[f]
  fruitConnect+=`
  <div class="content-item ml-10 mr-10">
    <div class="item-img">
      <img src="${item.URL}" alt="">
    </div>
    <p class="f14 mt-15">${item.title}</p>
    <p class="f12 mt-5 toe intr">${item.intr}</p>
    <div class="flex mt-5 jc-sb">
      <p>
        <span class="f10 red">￥</span>
        <span class="f15 red">${item.price}</span>
      </p>
     <p>
       <span class="f10 f999">销量</span>
       <span class="f14 f999 pr-5">：${item.salesVolume}</span>
      </p>
    </div>
  </div>
  `
}
fruitItem.innerHTML=fruitConnect;